package com.vickw.websocketdemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Description：
 * @Author VickW
 * @Date 2025/3/3 21:28
 */
@RestController
public class WebSocketController {
    @GetMapping("/send")
    public String sendMessage(@RequestParam String message) {
        // 这里可以添加逻辑将消息发送给特定的WebSocket客户端
        return "消息已发送: " + message;
    }

}
